package com.wanxi.education.controller.front;

import com.github.pagehelper.PageInfo;
import com.wanxi.education.common.CommonResult;
import com.wanxi.education.model.vo.advertandcertificate.AdvertVo;
import com.wanxi.education.service.AdvertService;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @Author: yanguangqiong
 * @Description:
 * @Date: Created in 2021/9/24
 * @Version: 1.0
 */
@Api(tags = "前端广告展示，不用登录")
@RestController
@RequestMapping("/user/front/advert")
public class AdvertFrontController {
    @Autowired
    private AdvertService advertService;
    @GetMapping("/findPage")
    @ApiOperation("广告展示")
    public CommonResult<PageInfo<AdvertVo>> findPageForFront() {
            PageInfo<AdvertVo> pageInfo = advertService.findPageForFront();
        return CommonResult.success(pageInfo);
    }
}
